import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import  'lib-flexible';
Vue.config.productionTip = false
import Vant from 'vant';
import 'vant/lib/index.css';
import { Tab, Tabs ,List,PullRefresh} from 'vant';
Vue.use(Tab).use(Tabs).use(List).use(PullRefresh);
//Vue.use(Vant);
const app = new Vue({
  store,
  router,
  render: h => h(App)
})

// 如果 JS 晚于 CSS 加载完成，那直接执行渲染
if (process.env.NODE_ENV === 'production') {
  if (window.STYLE_READY) {
    app.$mount('#app')
  }
} else {
  app.$mount('#app')
}
